package com.laborder.sysyy.service.classes.impl;

import com.laborder.sysyy.dao.ClassDaoMapper;
import com.laborder.sysyy.entity.Classes;
import com.laborder.sysyy.service.classes.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 786107529@qq.com FJL
 * @Date 2018/9/10 9:03
 */
@Service
@Transactional
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassDaoMapper classDaoMapper;
    @Override
    public List<Classes> findClassWithPage(Map<String,Object> map){
        return classDaoMapper.findClassWithPage(map);
    }
    @Override
    public int getClassCount(Map<String,Object>map) {
        return classDaoMapper.getClassCount(map);
    }
    @Override
    public List<Classes> findAllClasses(){
        return classDaoMapper.findAllClasses();
    }
    @Override
    public Classes getClassInfoById(String caId){
        return classDaoMapper.getClassInfoById(caId);
    }
}
